package com.liefox.mapper;

import com.liefox.pojo.Suffer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SufferMapper {
    /*注册*/
    public int sufferSignup(Suffer suffer);
    /*登录*/
    public Suffer sufferSignin(Suffer suffer);
    /*获取用户名*/
    public String getSufferName(@Param("Email") String Email, @Param("Password") String Password);
    /*根据邮箱重置密码*/
    public int sufferRecPw(@Param("Email") String Email,@Param("Password") String Password);
    /*获取用户信息*/
    public Suffer getSufferInfo(@Param("Email") String Email);
    /*修改用户信息*/
    public int updateSufferInfo(Suffer suffer);
    /*查看全部医生*/
    public List<Suffer> getSuffer();
    /*修改密码*/
    public int sufferUpPw(@Param("Email") String Email,@Param("Password") String Password);
}
